﻿
/*========================================================================================
// -- 
//创建者: goodasong
//创建时间：2011年9月23日 星期五
//类描述：实体类 TUser (属性说明自动提取数据库字段的描述信息)
//最后修改者:goodasong
//最后修改时间:2011年9月23日 星期五	
=========================================================================================*/
using System;
using System.Web;
using System.Runtime.Serialization;

namespace COM.Rights.Model
{
    /// <summary>
    /// 实体类 TUser (属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]	  
    [Model(Name = "TUser", PrimaryKey = "GID", ModelType = ModelType.Table, Condition = "1=1", IsNeedRecordModify = true)]
    public partial class TUserInfo : BaseModel
    {
        public TUserInfo()
        {            
            PrimaryKey = "GID"; 
			Fields.Add("ID");//标识
			Fields.Add("GID");//主键
			Fields.Add("UID");//用户名
			Fields.Add("Name");//姓名
			Fields.Add("PGID");//直属上级
			Fields.Add("PWD");//密码
			Fields.Add("CreatTime");//创建时间
			Fields.Add("Creator");//创建者
			Fields.Add("Sex");//性别
			Fields.Add("BirthDay");//生日
			Fields.Add("EMail");//电子邮件
			Fields.Add("Tel");//电话
			Fields.Add("Mobile");//移动电话
			Fields.Add("QQ");//QQ
			Fields.Add("MSN");//MSN
			Fields.Add("Photo");//照片
			Fields.Add("IsEnable");//是否启用
			Fields.Add("NO");//工号
			
			
			
			CanNotNullFields.Add("GID");//主键不能为空!				
			
			CanNotNullFields.Add("UID");//用户名不能为空!				
			
			CanNotNullFields.Add("Name");//姓名不能为空!				
			
			CanNotNullFields.Add("PWD");//密码不能为空!				
			this.OnCreated();			
			this.OnModelCreated();
        }
		public TUserInfo(bool isNewInfo)
        {
			IsNew = isNewInfo;
		}
		#region 方法

        public void OnCreated() { this.SetPrimaryKeyValue(); }		

		public override void SetPrimaryKeyValue()
        {
            GID = Guid.NewGuid().ToString();
        }
        #endregion 
		
		#region 成员变量
				
		private int? _ID;//标识
		private string _GID;//主键
		private string _UID;//用户名
		private string _Name;//姓名
		private string _PGID;//直属上级
		private string _PWD;//密码
		private DateTime? _CreatTime;//创建时间
		private string _Creator;//创建者
		private int? _Sex;//性别
		private DateTime? _BirthDay;//生日
		private string _EMail;//电子邮件
		private string _Tel;//电话
		private string _Mobile;//移动电话
		private string _QQ;//QQ
		private string _MSN;//MSN
		private string _Photo;//照片
		private bool? _IsEnable;//是否启用
		private string _NO;//工号
		
		#endregion
		
		#region 属性 
		
		/// <summary>
        /// 标识
        /// </summary>       
		[ModelField(Description = "标识", Type = typeof(int?), ErrorMessage = "标识信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = false, IsDbGenerated = false, Size = 4,  DbType = "int", IsNeedRecordModify = true)]
        public virtual int? ID
        {
            get
            {
                return this._ID;
            }
            set
            {
				_ID = value;
            }
        }
		
		/// <summary>
        /// 主键
        /// </summary>       
		[ModelField(Description = "主键", Type = typeof(string), ErrorMessage = "主键信息错误!", FieldType = FieldType.Normal, IsKeyField = true,IsUnique = true, IsForeignKey = false, IsAllowNull = false, IsDbGenerated = false, Size = 36,  DbType = "char", IsNeedRecordModify = true)]
        public virtual string GID
        {
            get
            {
                return this._GID;
            }
            set
            {
                if (_GID != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "GID", _GID, value, "char", "主键");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnGIDChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._GID = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnGIDChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _GID = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 用户名
        /// </summary>       
		[ModelField(Description = "用户名", Type = typeof(string), ErrorMessage = "用户名信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = false, IsDbGenerated = false, Size = 50,  DbType = "nvarchar", IsNeedRecordModify = true)]
        public virtual string UID
        {
            get
            {
                return this._UID;
            }
            set
            {
                if (_UID != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "UID", _UID, value, "nvarchar", "用户名");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnUIDChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._UID = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnUIDChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _UID = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 姓名
        /// </summary>       
		[ModelField(Description = "姓名", Type = typeof(string), ErrorMessage = "姓名信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = false, IsDbGenerated = false, Size = 50,  DbType = "nvarchar", IsNeedRecordModify = true)]
        public virtual string Name
        {
            get
            {
                return this._Name;
            }
            set
            {
                if (_Name != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "Name", _Name, value, "nvarchar", "姓名");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnNameChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Name = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnNameChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Name = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 直属上级
        /// </summary>       
		[ModelField(Description = "直属上级", Type = typeof(string), ErrorMessage = "直属上级信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 36,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string PGID
        {
            get
            {
                return this._PGID;
            }
            set
            {
                if (_PGID != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "PGID", _PGID, value, "varchar", "直属上级");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnPGIDChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._PGID = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnPGIDChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _PGID = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 密码
        /// </summary>       
		[ModelField(Description = "密码", Type = typeof(string), ErrorMessage = "密码信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = false, IsDbGenerated = false, Size = 100,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string PWD
        {
            get
            {
                return this._PWD;
            }
            set
            {
                if (_PWD != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "PWD", _PWD, value, "varchar", "密码");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnPWDChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._PWD = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnPWDChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _PWD = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 创建时间
        /// </summary>       
		[ModelField(Description = "创建时间", Type = typeof(DateTime?), ErrorMessage = "创建时间信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 8,  DbType = "datetime", IsNeedRecordModify = true)]
        public virtual DateTime? CreatTime
        {
            get
            {
                return this._CreatTime;
            }
            set
            {
                if (_CreatTime != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "CreatTime", _CreatTime, value, "datetime", "创建时间");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnCreatTimeChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._CreatTime = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnCreatTimeChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _CreatTime = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 创建者
        /// </summary>       
		[ModelField(Description = "创建者", Type = typeof(string), ErrorMessage = "创建者信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "nvarchar", IsNeedRecordModify = true)]
        public virtual string Creator
        {
            get
            {
                return this._Creator;
            }
            set
            {
                if (_Creator != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "Creator", _Creator, value, "nvarchar", "创建者");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnCreatorChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Creator = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnCreatorChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Creator = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 性别
        /// </summary>       
		[ModelField(Description = "性别", Type = typeof(int?), ErrorMessage = "性别信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 4,  DbType = "int", IsNeedRecordModify = true)]
        public virtual int? Sex
        {
            get
            {
                return this._Sex;
            }
            set
            {
                if (_Sex != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "Sex", _Sex, value, "int", "性别");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnSexChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Sex = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnSexChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Sex = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 生日
        /// </summary>       
		[ModelField(Description = "生日", Type = typeof(DateTime?), ErrorMessage = "生日信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 8,  DbType = "datetime", IsNeedRecordModify = true)]
        public virtual DateTime? BirthDay
        {
            get
            {
                return this._BirthDay;
            }
            set
            {
                if (_BirthDay != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "BirthDay", _BirthDay, value, "datetime", "生日");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnBirthDayChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._BirthDay = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnBirthDayChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _BirthDay = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 电子邮件
        /// </summary>       
		[ModelField(Description = "电子邮件", Type = typeof(string), ErrorMessage = "电子邮件信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "nvarchar", IsNeedRecordModify = true)]
        public virtual string EMail
        {
            get
            {
                return this._EMail;
            }
            set
            {
                if (_EMail != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "EMail", _EMail, value, "nvarchar", "电子邮件");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnEMailChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._EMail = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnEMailChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _EMail = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 电话
        /// </summary>       
		[ModelField(Description = "电话", Type = typeof(string), ErrorMessage = "电话信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Tel
        {
            get
            {
                return this._Tel;
            }
            set
            {
                if (_Tel != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "Tel", _Tel, value, "varchar", "电话");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnTelChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Tel = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnTelChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Tel = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 移动电话
        /// </summary>       
		[ModelField(Description = "移动电话", Type = typeof(string), ErrorMessage = "移动电话信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Mobile
        {
            get
            {
                return this._Mobile;
            }
            set
            {
                if (_Mobile != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "Mobile", _Mobile, value, "varchar", "移动电话");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnMobileChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Mobile = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnMobileChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Mobile = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// QQ
        /// </summary>       
		[ModelField(Description = "QQ", Type = typeof(string), ErrorMessage = "QQ信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string QQ
        {
            get
            {
                return this._QQ;
            }
            set
            {
                if (_QQ != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "QQ", _QQ, value, "varchar", "QQ");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnQQChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._QQ = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnQQChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _QQ = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// MSN
        /// </summary>       
		[ModelField(Description = "MSN", Type = typeof(string), ErrorMessage = "MSN信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string MSN
        {
            get
            {
                return this._MSN;
            }
            set
            {
                if (_MSN != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "MSN", _MSN, value, "varchar", "MSN");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnMSNChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._MSN = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnMSNChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _MSN = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 照片
        /// </summary>       
		[ModelField(Description = "照片", Type = typeof(string), ErrorMessage = "照片信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string Photo
        {
            get
            {
                return this._Photo;
            }
            set
            {
                if (_Photo != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "Photo", _Photo, value, "varchar", "照片");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnPhotoChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._Photo = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnPhotoChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _Photo = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 是否启用
        /// </summary>       
		[ModelField(Description = "是否启用", Type = typeof(bool?), ErrorMessage = "是否启用信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 1,  DbType = "bit", IsNeedRecordModify = true)]
        public virtual bool? IsEnable
        {
            get
            {
                return this._IsEnable;
            }
            set
            {
                if (_IsEnable != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "IsEnable", _IsEnable, value, "bit", "是否启用");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnIsEnableChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._IsEnable = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnIsEnableChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _IsEnable = value;
                    }
                }
            }
        }
		
		/// <summary>
        /// 工号
        /// </summary>       
		[ModelField(Description = "工号", Type = typeof(string), ErrorMessage = "工号信息错误!", FieldType = FieldType.Normal, IsKeyField = false,IsUnique = false, IsForeignKey = false, IsAllowNull = true, IsDbGenerated = false, Size = 50,  DbType = "varchar", IsNeedRecordModify = true)]
        public virtual string NO
        {
            get
            {
                return this._NO;
            }
            set
            {
                if (_NO != value)
                {
                    if (!IsGetDataFromDB)
                    {
                        ModifyInfo modifyInfo = new ModifyInfo("TUser", "NO", _NO, value, "varchar", "工号");   
                        this.OnPropertyChanging(modifyInfo);
                        this.OnNOChanging(modifyInfo);
                        this.SendPropertyChanging(modifyInfo);

                        this._NO = value;

                        this.OnPropertyChanged(modifyInfo);
                        this.OnNOChanged(modifyInfo);
                        this.SendPropertyChanged(modifyInfo);      
                    }
                    else
                    {
                        _NO = value;
                    }
                }
            }
        }
		#endregion 属性
				  
		#region 属性更改事件
		
		partial void OnIDChanging(ModifyInfo modifyInfo);//标识ID改变之前发生
        partial void OnIDChanged(ModifyInfo modifyInfo);//标识ID改变之后发生
		partial void OnGIDChanging(ModifyInfo modifyInfo);//主键GID改变之前发生
        partial void OnGIDChanged(ModifyInfo modifyInfo);//主键GID改变之后发生
		partial void OnUIDChanging(ModifyInfo modifyInfo);//用户名UID改变之前发生
        partial void OnUIDChanged(ModifyInfo modifyInfo);//用户名UID改变之后发生
		partial void OnNameChanging(ModifyInfo modifyInfo);//姓名Name改变之前发生
        partial void OnNameChanged(ModifyInfo modifyInfo);//姓名Name改变之后发生
		partial void OnPGIDChanging(ModifyInfo modifyInfo);//直属上级PGID改变之前发生
        partial void OnPGIDChanged(ModifyInfo modifyInfo);//直属上级PGID改变之后发生
		partial void OnPWDChanging(ModifyInfo modifyInfo);//密码PWD改变之前发生
        partial void OnPWDChanged(ModifyInfo modifyInfo);//密码PWD改变之后发生
		partial void OnCreatTimeChanging(ModifyInfo modifyInfo);//创建时间CreatTime改变之前发生
        partial void OnCreatTimeChanged(ModifyInfo modifyInfo);//创建时间CreatTime改变之后发生
		partial void OnCreatorChanging(ModifyInfo modifyInfo);//创建者Creator改变之前发生
        partial void OnCreatorChanged(ModifyInfo modifyInfo);//创建者Creator改变之后发生
		partial void OnSexChanging(ModifyInfo modifyInfo);//性别Sex改变之前发生
        partial void OnSexChanged(ModifyInfo modifyInfo);//性别Sex改变之后发生
		partial void OnBirthDayChanging(ModifyInfo modifyInfo);//生日BirthDay改变之前发生
        partial void OnBirthDayChanged(ModifyInfo modifyInfo);//生日BirthDay改变之后发生
		partial void OnEMailChanging(ModifyInfo modifyInfo);//电子邮件EMail改变之前发生
        partial void OnEMailChanged(ModifyInfo modifyInfo);//电子邮件EMail改变之后发生
		partial void OnTelChanging(ModifyInfo modifyInfo);//电话Tel改变之前发生
        partial void OnTelChanged(ModifyInfo modifyInfo);//电话Tel改变之后发生
		partial void OnMobileChanging(ModifyInfo modifyInfo);//移动电话Mobile改变之前发生
        partial void OnMobileChanged(ModifyInfo modifyInfo);//移动电话Mobile改变之后发生
		partial void OnQQChanging(ModifyInfo modifyInfo);//QQQQ改变之前发生
        partial void OnQQChanged(ModifyInfo modifyInfo);//QQQQ改变之后发生
		partial void OnMSNChanging(ModifyInfo modifyInfo);//MSNMSN改变之前发生
        partial void OnMSNChanged(ModifyInfo modifyInfo);//MSNMSN改变之后发生
		partial void OnPhotoChanging(ModifyInfo modifyInfo);//照片Photo改变之前发生
        partial void OnPhotoChanged(ModifyInfo modifyInfo);//照片Photo改变之后发生
		partial void OnIsEnableChanging(ModifyInfo modifyInfo);//是否启用IsEnable改变之前发生
        partial void OnIsEnableChanged(ModifyInfo modifyInfo);//是否启用IsEnable改变之后发生
		partial void OnNOChanging(ModifyInfo modifyInfo);//工号NO改变之前发生
        partial void OnNOChanged(ModifyInfo modifyInfo);//工号NO改变之后发生
		
		#endregion		
		
		public virtual string DetailURI { get; set; }
        public virtual string DetailHTMLURI { get; set; }
		public virtual string ManageEditURI {get; set;}
		public virtual string ManageDetailURI {get; set;}
		
		public override void OnLoaded()
        {
            base.OnLoaded();	
			DetailURI = ZModel.InitDetailURI("TUser", "GID", GID);
            DetailHTMLURI = ZModel.InitDetailHTMLURI("TUser", "GID", GID);		
			ManageEditURI = ZModel.InitMEditURI("TUser", "GID", GID);	
		 	ManageDetailURI = ZModel.InitMDetailURI("TUser", "GID", GID);	
			OnModelLoaded();
        }
		
		partial void OnModelCreated();
        partial void OnModelLoaded();
	}	
}